package com.dapeis.domain;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import com.ag.core.base.Domain;

/**
 * 用户个人信息 
 * Title:UserInformation.java UserInformation Description:
 * @author yuanyong
 * @date 2017年4月19日 下午3:53:38 Email: hzyuanyong@126.com
 *
 */
@Table(name = "dps_user_information")
public class UserInformation extends Domain {

    private static final long serialVersionUID = 101147737256408604L;
    @Id
    @GeneratedValue(generator = "JDBC")
    Integer id;
    Integer userId;// 用户Id
    String faceshpe;// 脸型
    String colorofskin;//肤色
    String bodySize;// 体型
    String problem;// 解决问题[多选]1|2|3
    String style;// 风格偏好[多选] 1|2|3
    String heigh;// 身高
    String weight;//体重
    String chest;// 胸围
    String waist;// 腰围
    String hip;// 臀围
    String professional;// 职业
    String cityCode;// 城市
    Integer sex; // 性别
    Long birthday;// 生日 计算出-->年龄
    String lifeImg;//生活照 path|path| 

    public static final String PROPERTY_ID = "id";
    public static final String PROPERTY_USERID = "userId";
    public static final String property_faceshpe = "faceshpe";
    public static final String PROPERTY_COLOROFSKIN = "colorofskin";
    public static final String PROPERTY_BODYSIZE = "bodySize";
    public static final String PROPERTY_PROBLEM ="problem";
    public static final String PROPERTY_STYLE ="style";
    
    

    /**
    public boolean isPerfect() {
	if (StringUtils.isNotEmpty(faceshpe)
		&& StringUtils.isNotEmpty(colorofskin)
		&& StringUtils.isNotEmpty(bodySize)
		&& StringUtils.isNotEmpty(problem)
		&& StringUtils.isNotEmpty(style)
		&& StringUtils.isNotEmpty(heigh)
		&& StringUtils.isNotEmpty(weight)
		&& StringUtils.isNotEmpty(chest)
		&& StringUtils.isNotEmpty(waist) && StringUtils.isNotEmpty(hip)
		&& StringUtils.isNotEmpty(professional)
		&& StringUtils.isNotEmpty(cityCode) && NumberUtils.isValid(sex)
		&& NumberUtils.isValid(birthday)) {
	    return true;
	}
	return false;
    }
*/
    public Integer getId() {
	return id;
    }

    public void setId(Integer id) {
	this.id = id;
    }

    public Integer getUserId() {
	return userId;
    }

    public void setUserId(Integer userId) {
	this.userId = userId;
    }

    public String getFaceshpe() {
	return faceshpe;
    }

    public void setFaceshpe(String faceshpe) {
	this.faceshpe = faceshpe;
    }

    public String getColorofskin() {
	return colorofskin;
    }

    public void setColorofskin(String colorofskin) {
	this.colorofskin = colorofskin;
    }


    public String getBodySize() {
        return bodySize;
    }

    public void setBodySize(String bodySize) {
        this.bodySize = bodySize;
    }

    public String getProblem() {
	return problem;
    }

    public void setProblem(String problem) {
	this.problem = problem;
    }

    public String getStyle() {
	return style;
    }

    public void setStyle(String style) {
	this.style = style;
    }

    public String getHeigh() {
	return heigh;
    }

    public void setHeigh(String heigh) {
	this.heigh = heigh;
    }

    public String getWeight() {
	return weight;
    }

    public void setWeight(String weight) {
	this.weight = weight;
    }

    public String getChest() {
	return chest;
    }

    public void setChest(String chest) {
	this.chest = chest;
    }

    public String getWaist() {
	return waist;
    }

    public void setWaist(String waist) {
	this.waist = waist;
    }

    public String getHip() {
	return hip;
    }

    public void setHip(String hip) {
	this.hip = hip;
    }

    public String getProfessional() {
	return professional;
    }

    public void setProfessional(String professional) {
	this.professional = professional;
    }

    public String getCityCode() {
	return cityCode;
    }

    public void setCityCode(String cityCode) {
	this.cityCode = cityCode;
    }

    public Integer getSex() {
	return sex;
    }

    public void setSex(Integer sex) {
	this.sex = sex;
    }

    public Long getBirthday() {
	return birthday;
    }

    public void setBirthday(Long birthday) {
	this.birthday = birthday;
    }

    public String getLifeImg() {
        return lifeImg;
    }

    public void setLifeImg(String lifeImg) {
        this.lifeImg = lifeImg;
    }
    

}
